﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agnes.TaskManager.Models;
using Csla;

namespace Agnes.TaskManager
{
    /// <summary>
    /// 优先级名值对照表
    /// </summary>
    /// <typeparam name="K">PriorityLevel</typeparam>
    /// <typeprarm name="V">PriorityLevel显示字符串</typeprarm>
    public class PriorityLevelNVL : NameValueListBase<PriorityLevel, string> 
    {
        private void DataPortal_Fetch()
        {
            RaiseListChangedEvents = false;
            IsReadOnly = false;
            Add(new NameValuePair(PriorityLevel.VeryHigh, "紧急"));
            Add(new NameValuePair(PriorityLevel.High, "较急"));
            Add(new NameValuePair(PriorityLevel.Medium, "中等"));
            Add(new NameValuePair(PriorityLevel.Low, "较低"));
            Add(new NameValuePair(PriorityLevel.VeryLow, "非常低"));

        }
    }
}
